import {createRouter, createWebHistory} from 'vue-router'

const routes = [
    {
        path: '/container',
        component: () => import('@/views/ContainerView.vue'),
        children: [
            {
                path: 'userinfo',
                component: () => import('@/views/UserView.vue')
            }, {
                path: 'score',
                component: () => import('@/views/ScoreView.vue')
            }
        ]
    }, {
        path: '/login',
        component: () => import('@/views/LoginView.vue')
    }, {
        path: '/ui',
        component: () => import('@/views/ElementView.vue')
    }, {
        path: '/home',
        component: () => import('@/views/HomeView.vue')
    },{
        path: '/upload1',
        component: () => import('@/views/upload/UploadView.vue')
    },{
        path: '/video',
        component: () => import('@/views/video/VideoView.vue')
    },{
        path: '/analysis',
        component: () => import('@/views/student/index.vue')
    }
    // {
    //         path: '/echarts01',
    //         component: () => import('@/views/echarts/echartsView01.vue')
    //     },{
    //         path: '/echarts02',
    //         component: () => import('@/views/echarts/echartsView02.vue')
    //     },
]
const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
